export function getDictItems(type){
	return axios.get("/data/" + type)
}

export function parseDictValue(list,val){
	let d = list.find(d=>{
		return d.dicDataVal==val;
	})
	return d;
}

export function parseItem(list,val){
	let d = list.find(d=>{
		return d.dicDataVal==val;
	})
	if(d!=null &&d!=undefined)return d.dicDataLabel;
	else return "";
}